function Ankhy_Rogue_2()
	--[[
		http://www.simulationcraft.org/reports/Raid_T15H.html

		8	1.00	virmens_bite_potion,if=buff.bloodlust.react|target.time_to_die<40
		9	6.06	auto_attack
		A	12.01	kick
		B	1.95	preparation,if=!buff.vanish.up&cooldown.vanish.remains>60
		C	7.17	use_item,slot=hands,if=time=0|buff.shadow_blades.up
		D	0.00	blood_fury,if=time=0|buff.shadow_blades.up
		E	2.73	berserking,if=time=0|buff.shadow_blades.up
		F	0.00	arcane_torrent,if=energy<60
		G	0.00	blade_flurry,if=(active_enemies>=2&!buff.blade_flurry.up)|(active_enemies<2&buff.blade_flurry.up)
		H	5.05	ambush
		I	5.06	vanish,if=time>10&(combo_points<3|(talent.anticipation.enabled&anticipation_charges<3)|(buff.shadow_blades.down&(combo_points<4|(talent.anticipation.enabled&anticipation_charges<4))))&((talent.shadow_focus.enabled&buff.adrenaline_rush.down&energy<20)|(talent.subterfuge.enabled&energy>=90)|(!talent.shadow_focus.enabled&!talent.subterfuge.enabled&energy>=60))
		J	7.17	shadow_blades,if=time>5
		K	10.40	killing_spree,if=energy<45
		L	7.16	adrenaline_rush,if=energy<35|buff.shadow_blades.up
		M	13.30	slice_and_dice,if=buff.slice_and_dice.remains<2|(buff.slice_and_dice.remains<15&buff.bandits_guile.stack=11&combo_points>=4)
		N	0.00	marked_for_death,if=talent.marked_for_death.enabled&(combo_points<=1&dot.revealing_strike.ticking)
		O	0.00	run_action_list,name=generator,if=combo_points<5|(talent.anticipation.enabled&anticipation_charges<=4&!dot.revealing_strike.ticking)
		P	0.00	run_action_list,name=finisher,if=!talent.anticipation.enabled|buff.deep_insight.up|cooldown.shadow_blades.remains<=11|anticipation_charges>=4|(buff.shadow_blades.up&anticipation_charges>=3)
		Q	0.00	run_action_list,name=generator,if=energy>60|buff.deep_insight.down|buff.deep_insight.remains>5-combo_points
		actions.finisher
		#	count	action,conditions
		R	14.10	rupture,if=ticks_remain<2&target.time_to_die>=26&(active_enemies<2|!buff.blade_flurry.up)
		S	0.00	crimson_tempest,if=active_enemies>=7&dot.crimson_tempest_dot.ticks_remain<=2
		T	65.04	eviscerate
		actions.generator
		#	count	action,conditions
		U	0.00	fan_of_knives,line_cd=5,if=active_enemies>=4
		V	19.37	revealing_strike,if=ticks_remain<2
		W	222.34	sinister_strike
	]]--
	
	
	
		ccR_Rogue_AutoStealth()
		if ccrPlayerIsInStealth() then
		-- Stealth

		ccR_Rogue_Shadowstep()

		if (
				ccrPlayerIsBehindTarget()
				or
				ccrPlayerHasTalent(CLOAK_AND_DAGGER)
			)
		and SpellCanAttack(AMBUSH)
		then
			ccrCastAttack(AMBUSH)
			return
		end
		end
		if ccrPlayerCount(8) >= 2
			then
				ccrCast("Blade Flurry")
			return
		end
		if SpellIsReady("Preparation")
			and ccrPlayerIsInCombat()
			and SpellIsOnCooldown("Vanish")
			then
				ccrCast("Preparation")
				return
		end
		if SpellIsReady("Adrenaline Rush")
			and ccrPlayerIsInCombat()
			and ccrPlayerEnergy() <= 35
			then
				ccrCast("Adrenaline Rush")
				return
		end
		if SpellIsReady("Shadow Blades")
			and ccrPlayerIsInCombat()
			and ccrPlayerHasBuff("Adrenaline Rush")
			then
				ccrCast("Shadow Blades")
				return
		end
		if SpellIsReady("Killing Spree")
			and not	(ccrPlayerHasBuff("Adrenaline Rush") or ccrPlayerHasBuff("Shadow Blades"))
			and ccrPlayerIsInCombat()
			and ccrPlayerEnergy() <= 45
			then
				ccrCast("Killing Spree")
				return
		end
	--[[	if SpellIsReady("Vanish")
			and ccrPlayerIsInCombat()
			and ccrTargetIsBoss() 
			and not	(ccrPlayerHasBuff("Adrenaline Rush") or ccrPlayerHasBuff("Shadow Blades") or ccrPlayerHasBuff("Killing Spree"))
			then
				ccrCast("Vanish")
				return
		end --]]
		if ccrPlayerHasSpell("Revealing Strike")
				and not ccrTargetHasDebuff("Revealing Strike")
				and SpellCanAttack("Revealing Strike")
				then
					ccrCastAttack("Revealing Strike")
					return
		end
		if not ccrPlayerHasBuff("Slice and Dice")
			and ccrComboPoints() == 5
				then
					ccrCast("Slice and Dice")
					return
			else
			if not ccrPlayerHasBuff("Slice and Dice") or ccrPlayerHasBuffRemaining("Slice and Dice", 3)
				and ccrComboPoints() >= 2
					then
						ccrCast("Slice and Dice")
					return
			end
		end	
		if ccrPlayerCount(8) >= 4 then
			if ccrPlayerHasBuff("Anticipation")
				and ccrPlayerHasBuffStacks("Anticipation", 5)
					then 
						ccrCastAttack("Crimson Tempest")
					return
				else
					if ccrComboPoints() == 5
						and ccrPlayerHasBuff("Deep Insight")
							then
								ccrCast("Crimson Tempest")
							return
					end		
			end	
		end	
		if ccrPlayerHasBuff("Anticipation")
			and ccrPlayerHasBuffStacks("Anticipation", 5)
				then 
					ccrCastAttack("Eviscerate")
				return
			else
				if ccrComboPoints() == 5
					and ccrPlayerHasBuff("Deep Insight")
						then
							ccrCast("Eviscerate")
						return
				end		
		end	
		if ccrSpellCanAttack("Sinister Strike")
			then
				ccrCastAttack("Sinister Strike")
				return
		end

end
